package com.army.stock.dao;

import com.army.stock.domain.ArmyRole;

import java.util.List;
import java.util.Map;

/**
 * Created by zhangyong on 14/12/25.
 */
public interface ArmyRoleDao {

    public List<ArmyRole> getArmyRoleList(Map<String, Object> param);

    public List<Map> getAllArmyRoleList();

    public List<Long> getUserRoleListByUserId(Long userId);

    public Integer getCountArmyRole(Map<String, Object> param);

    public Integer insertArmyRole(ArmyRole armyRole);

    public Integer insertArmyRolePermit(Map<String,Object> map);

    public ArmyRole getArmyRoleById(Long id);

    public void updateArmyRole(ArmyRole armyRole);

    public List<String> getPermitsByRoleId(Long roleId);

    public List<Map> getAllPermits();

    public void deletePermitsByRoleId(Long roleId);

    public List<String> getAllpermitsByUserId(Long userId);

    public void deleteUserRole(Long userId);

    public Integer insertUserRole(Map<String,Object> param);

}
